package com.yuanfeng.basedata.repository;

import com.yuanfeng.basedata.entiry.KcsjFood;
import com.yuanfeng.basedata.entiry.KcsjUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Optional;

/**
 * @ClassName UserRepository
 * @Description T0D0
 * @Author yuanfeng
 * @Date 2019/9/6 21:30
 * @Version 1.0
 **/
@Repository
public interface FineFoodRepository extends JpaRepository<KcsjFood,Integer> {

    /**
     * @return
     * @Description:查询所有美食
     * @Param
     * @date: 2019/9/6 23:57
     */

    List<KcsjFood> findAll();

    /**
     * @return
     * @Description: 根据ID查询
     * @Param
     * @date: 2019/9/7 9:23
     */

    @Override
    Optional<KcsjFood> findById(Integer integer);

    /**
     * @Description: 根据用户名密码查询用户
     * @Param userName 用户名
     * @Param userPassword 密码
     * @return 得到用户
     * @date: 2019/9/6 23:59
     */

}